﻿using Domain;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructure
{
    public class DBContext : DbContext
    {
        public DBContext(DbContextOptions options) : base(options)
        {
        }




        /// <summary>
        ///  业务信息表
        /// </summary>
        public DbSet<BusinessCooperation> ERP_BusinessCooperation  { get; set; }

        /// <summary>
        ///  已分配客户列表实体类
        /// </summary>
        public DbSet<AssignedCustomer> ERP_AssignedCustomer { get; set; }
        /// <summary>
        /// 主要联系人信息表
        /// </summary>
        public DbSet<Contact> ERP_Contact { get; set; }
        /// <summary>
        /// 客户表
        /// </summary>
        public DbSet<Customer> ERP_Customer { get; set; }
        /// <summary>
        /// 财务信息表
        /// </summary>
        public DbSet<FinancialAccount> ERP_FinancialAccount { get; set; }
        /// <summary>
        /// 待分配客户列表实体类
        /// </summary>
        public DbSet<PendingCustomer> ERP_PendingCustomer { get; set; }
        /// <summary>
        /// 客户列表实体类
        /// </summary>
        public DbSet<AllCustomers> ERP_AllCustomers { get; set; }
        /// <summary>
        /// 客户跟进列表
        /// </summary>
        public DbSet<CustomerFollowUpRecord> ERP_CustomerFollowUpRecord { get; set; }
        /// <summary>
        /// 我的客户列表
        /// </summary>
        public DbSet<MyCustomer> ERP_MyCustomer { get; set; }


    }
}
